package com.admin.education.dataTransferObject.menus.Mapper;

import com.admin.education.dataTransferObject.menus.MenusTree;
import com.admin.education.models.Menus;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public abstract class MenuMapper {
    @Mappings({
            @Mapping(target = "childrens", ignore = true)
    })
    public   abstract MenusTree mapTo(Menus menus);
}
